/*
 * @Author: your name
 * @Date: 2021-04-14 00:51:07
 * @LastEditTime: 2021-05-30 12:04:51
 * @LastEditors: Please set LastEditors
 * @Description: 上市产品
 * @FilePath: /medicine-web/src/store/modules/product.js
 */
import rest from './../rest'
const product = {
  state: {},
  mutations: {},
  actions: {
    // 获取上市产品列表
    async getProductList() {
      const res = await rest.get('drug/index')
      if (res && res.code == 200) {
        return res.data
      }
      return []
    },
    // 获取上市产品统计
    async getProductStatitics() {
      const res = await rest.get('drug/report')
      if (res && res.code == 200) {
        return res.data
      }
      return {}
    }
  },
  getters: {}
}
export default product